﻿<%@ Page Language="C#" MasterPageFile="~/SubForm.Master" AutoEventWireup="true" CodeBehind="SendEmail.aspx.cs" Inherits="PreContractWeb.Task.SendEmail" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<input type="hidden" runat="server" id="hidIds" />
<div style="text-align: center">
        <table width="95%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td align="left" height="50" valign="middle">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" height="45">
                        <tr>
                            <td rowspan="3" width="50">
                                <img class="ContentTitle" border="0" /></td>
                            <td colspan="2" height="5">
                            </td>
                        </tr>
                        <tr>
                            <td width="200" height="30" class="ContentTitle">
                                发送电子邮件(Send Email)</td>
                            <td height="30" align="right">
                                <!--整体按钮-->
                                <asp:Button ID="btnSend" CssClass="bgButton" runat="server" Text="发送 (Send)" OnClick="btnSend_Click"
                                   confirm="您确认要发送这些电子邮件吗?\nAre you sure to send the email(s)?"  isvalidate="true" />
                                <asp:Button ID="btnCancel" CssClass="bgButton" runat="server" Text="取消 (Cancel)"
                                    OnClientClick="window.close(); " />&nbsp;<!--整体按钮--></td>
                        </tr>
                        <tr>
                            <td height="10" valign="top">
                                <img class="ContentTitle" imgsource="../Images/BG-SubMenuTitle-A-" imgtype=".png"
                                    width="100%" height="3" /></td>
                            <td height="10">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td width="100%" height="100%" valign="middle" align="center">
                    <br />
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="panel_header">
                                <!--标题-->
                                邮件内容&nbsp;<!--标题--></td>
                            <td width="5" rowspan="2" background="../Images/BG-Border-Right.png" valign="top">
                                <img src="../Images/BG-Border-RT.png" border="0" /></td>
                        </tr>
                        <tr>
                            <td class="panel_body">
                                <!--Panel Body-->
                                <table style="width: 100%">
                                    <tr>
                                        <td style="text-align: center;">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table style="width: 100%; height: 100%">
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        预合同:<br />
                                                        Pre-Contract No#:</td>
                                                    <td align="left" colspan="3" valign="middle">
                                                        &nbsp;<asp:TextBox ID="txtPreContractNo" runat="server" allowempty="true" ReadOnly="true" CssClass="cssText"
                                                            TextMode="MultiLine" Width="98%"></asp:TextBox></td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        标题:<br />
                                                        Subject:</td>
                                                    <td align="left" valign="middle" colspan="3">
                                                        &nbsp;<asp:TextBox ID="txtSubject" runat="server" CssClass="cssText" allowempty="false"
                                                            Width="95%"></asp:TextBox><b class="required">*</b></td>
                                                </tr>
                                                <tr>
                                                    <td align="left" style="width: 15%; text-align: left" valign="middle">
                                                        内容:<br />
                                                        Content:</td>
                                                    <td align="left" colspan="3" valign="middle">
                                                        &nbsp;<asp:TextBox ID="txtComments" runat="server" TextMode="MultiLine" Width="98%" CssClass="cssText"
                                                            allowempty="true" Height="100px"></asp:TextBox></td>
                                                </tr>
                                               
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <!---->
                            </td>
                        </tr>
                        <tr>
                            <td height="5" background="../Images/BG-Border-Bottom.png" align="left">
                                <img src="../Images/BG-Border-LB.png" border="0" /></td>
                            <td width="5" height="5" background="../Images/BG-Border-RB.png">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <script language="javascript">

     var selIDs=window.dialogArguments.split("|");
     
     var hidIDs=document.getElementById("ctl00_ContentPlaceHolder1_hidIDs");
     var txtNo=document.getElementById("ctl00_ContentPlaceHolder1_txtPreContractNo");
     
     if (hidIDs!=null)
     {
        hidIDs.value=selIDs[0];
        //alert(hidIDs.value.length);
        if (txtNo!=null)
        {
            txtNo.value=selIDs[1];
            //alert(txtNo.value.length);
        }
        
     }
     


    </script>
</asp:Content>
